
package fileby.ctrl.actions.impl;

import fileby.core.ActionKey;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JDialog;
import javax.swing.JFrame;

/**
 *
 * @author Jacob
 */
class ShowAboutBoxAction extends AbstractAction {


    public ShowAboutBoxAction() {
        super("About", null);
        putValue(SHORT_DESCRIPTION, "Show info about this application");
    }

    public void actionPerformed(ActionEvent e) {
        JDialog d = (JDialog)this.getValue(ActionKey.SHOW_ABOUT_BOX.toString());
        JFrame f = (JFrame)this.getValue("Parent");
        d.setLocationRelativeTo(f);
        d.setVisible(true);
    }

}
